package com.smartsaas.ugclivii.cd;

import nxopen.NXException;
import nxopen.blockstyler.Node;
import nxopen.blockstyler.Tree;

import java.rmi.RemoteException;

public class MlTreeStateChangeHandler implements Tree.OnStateChangeCallback{
    @Override
    public void onStateChangeCallback(Tree tree, Node node, int i) throws NXException, RemoteException {
        int state = node.getState()==1?2:1;
        node.setState(state);
    }
}
